<!-- @format -->

<template>
  <!-- 主体区域-->
  <section class="main">
    <input
      id="toggle-all"
      class="toggle-all"
      type="checkbox" />
    <label for="toggle-all">Mark all as complete</label>
    <ul class="todo-list">
      <li
        :class="{ completed: item.done }"
        v-for="item in arr"
        :key="item.id">
        <div class="view">
          <input
            class="toggle"
            type="checkbox"
            v-model="item.done" />
          <label>{{ item.name }}</label>
          <button class="destroy"></button>
        </div>
        <input
          class="edit"
          value="Create a TodoMVC template" />
      </li>
    </ul>
  </section>
</template>

<script>
  export default {
    props: ['arr']
  }
</script>

<style></style>
